home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
text
/
hyper
/
hsc_source.lha
/
hsc
/
source
/
hsclib
/
uri.h
< prev
Wrap
C/C++ Source or Header
|
1996-12-04
|
845b
|
39 lines
/*
* uri.h
*
* functions for parsing URIs
*
*/
#ifndef HSCLIB_URI_H
#define HSCLIB_URI_H
#define ABSURI_ID ":"
typedef enum
{
URI_abs, /* starts with ":" */
URI_ext, /* contains ":" before first "/" */
URI_rel, /* no ":" */
URI_relserv /* starts with "/"; server relative */
}
URIKIND; /* uri kinds */
/*
* global funcs
*/
#ifndef NOEXTERN_HSCLIB_URI_H
extern VOID conv_path2uri(EXPSTR * dest, STRPTR path);
extern VOID conv_uri2path(EXPSTR * dest, STRPTR uri, BOOL weenix);
extern VOID conv_hscuri2file(HSCPRC * hp, EXPSTR * dest_fname, STRPTR uri);
extern VOID parse_uri(HSCPRC * hp, EXPSTR * dest_uri, STRPTR uri);
extern URIKIND uri_kind(STRPTR uri);
#endif /* NOEXTERN_HSCLIB_URI_H */
#endif /* HSCLIB_URI_H */